package com.qunji.cpsdistribution.controller;


import com.qunji.cpsdistribution.feign.CommodityFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    CommodityFeign commodityFeign;


    @RequestMapping("/test")
    @ResponseBody
    public String userTest(){

        return "用户调用了"+commodityFeign.test();

    }

}

